#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <math.h>
int main()
{
    long int  age, second;
    scanf("%ld", &age);
    second = age * 3.156 * pow(10, 7);
    printf("%ld", second);
    return 0;
}